/*绑定模态框hide事件，清除id参数*/
$(function () { 
	$('#modelSupplierHandle').on('hide.bs.modal', function () {
		$(this).removeData('id');
	});
});

/*供应商资料编辑*/
function editSupplierProfile(id,name){
	//rootView.getSubView('supplierModelDialogView').show(id);
	rootView.getLevelView('supplierView','supplierModelDialogView').show(id);
}

/*供应商货品管理*/
function manageSupplierProducts(id){
	Backbone.history.navigate('#supplierProducts/'+id,{trigger:true});
}
